<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/29 0029
  Time: 15:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>分销区域表信息管理</title>
    <script type="text/javascript" src="/static/commons/layui/layui.js"></script>
    <link rel="stylesheet" href="/static/commons/layui/css/layui.css">

</head>
<body>
<h2 align="center">分销区域表信息管理</h2><br>
<form action="/distr-area/findArea" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input class="layui-input" type="text" name="distrAreaName" id="distrAreaName" placeholder="请输入分销区域名称">
        </div>
    <button class="layui-btn layui-btn-normal" id="find" type="submit">查询</button>
    <button class="layui-btn layui-btn-normal" id="add" type="button" onclick="add()">添加</button>
    </div>
</form>
    <table class="layui-table" lay-skin="line">
        <colgroup>
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>分销区域名称</th>
            <th colspan="2">操作</th>
        </tr>
        </thead>
        <tbody>
            <c:forEach items="${list}" var="list">
            <tr>
                <td><a href="/distr-building/toBuilding?data=${list.distrAreaId}">${list.distrAreaName}</a></td>
                <td><a href="../views/distr_area/area_revise.jsp?data=${list.distrAreaName}">修改</a></td>
                <td><a id="delete" href="/distr-area/deleteArea?data=${list.distrAreaName}">删除</a></td>
            </tr>
            </c:forEach>
        </tbody>
    </table>
<script src="/static/js/distr_area/area_manage.js"></script>
</body>
</html>
